package com.py.credit.service;

import java.util.List;
import java.util.Map;

import com.py.credit.entity.Template;
import com.py.framework.core.common.Page;

public interface TemplateService {

	List<Map<String, Object>> getByConditionForPage(List<String> showColumns, String[] additionalColumns,
			String condition, Page page);

	List<Map<String, Object>> selectMbCode();

	int selectSameName(String id, String name);

	void addTemplate(String name, String content, String type, int managerId, String start_time, String end_time);

	void del(String ids);

	void modify(String id, String name, String content, String start_time, String end_time);

	Template selectOne(int id);

	int selectSameType(String type);

	void startEnable(int id);

	void insertTemplateData(int id, String start_time, String end_time);

}
